-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: erasure decoder #4448
Merged
Merged
feat: erasure decoder #4448
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nugaon
force-pushed
the
feat/erasure-encoder
branch
2 times, most recently
from
November 8, 2023 11:47
cb39e6b
to
5bb42e0
Compare
nugaon
force-pushed
the
feat/erasure-decoder
branch
from
November 13, 2023 09:51
d42c28e
to
51948f1
Compare
nugaon
force-pushed
the
feat/erasure-decoder
branch
from
December 1, 2023 09:13
8d7264a
to
0d54a70
Compare
nugaon
force-pushed
the
feat/erasure-decoder
branch
from
December 4, 2023 15:00
e7d9907
to
9cd6f19
Compare
nugaon
added a commit
that referenced
this pull request
Dec 4, 2023
nugaon
added a commit
that referenced
this pull request
Dec 18, 2023
nugaon
added a commit
that referenced
this pull request
Dec 20, 2023
nugaon
added a commit
that referenced
this pull request
Dec 20, 2023
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Creating redundancy getter which retrieves children chunks of an intermediate chunk and tries to recover missing data if there is any.
Its initialization happens by passing the data and parity shard addresses of the intermediate chunk having some parities greater than 0. To extract these addresses
ChunkAddresses
function was created inpkg/file/utils.go
. along withChunkPayloadSize
function that identifies the effective size of an intermediate chunk. The redundancy level is encoded in the span of the intermediate chunk which is used to identify shard and parity reference counts in a chunk.The getter also requires a
storage.Putter
interface for saving recovered chunks to the localStorage.Let
n
indicate the data shard number andp
for the parity number.If a chunk is missing (or the faster requests strategy is enabled) then the recovery process will start n + k requests for data and parity shards and cancel all requests if n requests returned successfully. Data shards not returned in this process will be recovered and saved.
The redundancy getter is used by the file joiner that is responsible to read a file.
what is left:
Checklist
Description
Open API Spec Version Changes (if applicable)
Motivation and Context (Optional)
Related Issue (Optional)
Screenshots (if appropriate):